Getting Started

Getting Started#

The Execution Graph plugin can be installed from the Prism Hub.

After the plugin is installed, the Execution Graph can be opened from the Options menu in the Prism Project Browser.
../../../_images/eg_project_browser_menu.jpg
This will open the node editor, where we can create our graphs.
../../../_images/eg_editor.jpg
By default an Input, Add and Multiply node are created.
You can use the mousewheel to zoom and pan in the node view.
Left click and drag to move nodes around.
../../../_images/eg_nodes_moved.jpg
Click the "Run" button at the top right to execute the graph.
The execution starts at the Inputs node and then follows the red execution connection to the Add node.
After the Add node got executed the execution connection goes to the Multiply node.

In the Output Log at the bottom of the editor you can see the result on the Multiply node -> 1.0.
../../../_images/eg_multiply_result.jpg
Now click and drag the "Result" output port of the Add node into the "Value 1" input port of the Multiply node.
Run the graph again and this time the result in the Output Log will show 2.0.
../../../_images/eg_multiply_result2.jpg
Select the Add node and in the Node Parameters on the right side we can see that it adds 1 and 1 together.
../../../_images/eg_add_parameter.jpg
Change the values to 5 and 2. Then select the Multiply node, set "Value 2" to 3 and run the graph.
../../../_images/eg_multiply_parms.jpg
The result of the Add node is 7 and this number will be multiplied by the Multiply node with 3, which prints the result of 21.

Now that we covered how to pass values from node to node, we can start a more useful example.
Select the Add and Multiply node and press the delete key to remove the nodes.

Press Tab and create a "Create Shot" node from the "Prism" category.
Then connect the red Execution port from the Inputs node with the Create Shot node.
../../../_images/eg_create_shot.jpg
Next create an "Open Project Browser" node, connect it with "Create Shot" node and run the graph.
../../../_images/eg_open_pb.jpg
This will create a shot in your current Prism project and then open the Project Browser.
../../../_images/eg_shot_created.jpg
Now create a "Create Department" node and a "Create Task" node and connect them like this:
../../../_images/eg_create_task.jpg
Press CTRL + D while the "Create Task" node is selected to duplicate it.
Left click to place the node and the connect the execution, Entity and Department ports.
Then select the new "Create Task" node and change the Name parameter.
../../../_images/eg_multiple_create_task.jpg
Run the graph and check the created tasks in the Project Browser (you might need to refresh it to see the new tasks).
../../../_images/eg_tasks_created.jpg
This gives you a first idea of what you can do with the Execution Graph.

Check out the Execution Graph Library for more examples.